<template>
	<view class="body">
		<addVue :title="'基础信息'">
			<view class="row-box">
				<view class="size">
					手机号
				</view>
				<u-input placeholder="请填写手机号" type="number" maxlength="11" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
			<view class="row-box">
				<view class="size">
					姓名
				</view>
				<u-input placeholder="请填写姓名" type="text" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
			<view class="row-box">
				<view class="size">
					性别
				</view>
				<view v-for="(item,index) in sexList" :key="index" class="Item" @click="sexActive = index">
					<image :src="sexActive == index ?$IMG_URL('/static/test/radiotrue.png'):$IMG_URL('/static/test/radiofalse.png')"
						mode="aspectFill" class="img"></image>
					<text class="text">{{item}}</text>
				</view>
			</view>
			<view class="row-box">
				<view class="size">
					出生日期
				</view>
				<view class="rows">
					<view class="mr size">
						请选择出生日期
					</view>
					<u-icon name="arrow-right" color="#999999" size="14"></u-icon>
				</view>
			</view>
			<view class="row-box">
				<view class="size">
					体重(kg)
				</view>
				<u-input placeholder="请填写体重(kg)" type="number" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
			<view class="row-box">
				<view class="size">
					身高(cm)
				</view>
				<u-input placeholder="请填写身高(cm)" type="number" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
		</addVue>
		<addVue :title="'人体成分分析'">
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							身体水分含量(kg)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							26.0-31.8
						</view>
					</view>
				</view>
			</view>
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							蛋白质(kg)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							7.0-8.6
						</view>
					</view>
				</view>
			</view>
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							无机盐(kg)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							2.4-2.9
						</view>
					</view>
				</view>
			</view>
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							体脂肪(kg)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							2.4-2.9
						</view>
					</view>
				</view>
			</view>
		</addVue>
		<addVue :title="'肌肉脂肪分析'">
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							体重(kg)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							43.4-58.8
						</view>
					</view>
				</view>
			</view>
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							骨骼肌(kg)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							7.0-8.6
						</view>
					</view>
				</view>
			</view>
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							体脂率(kg)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							2.4-2.9
						</view>
					</view>
				</view>
			</view>
		</addVue>
		<addVue :title="'肥胖分析'">
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							身体质量参数(kg)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							18.5-23.0
						</view>
					</view>
				</view>
			</view>
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							体脂百分数(%)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							18.0-28.0
						</view>
					</view>
				</view>
			</view>
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							腰臀比百分数(%)
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							0.8-0.9
						</view>
					</view>
				</view>
			</view>
			<view class="row-box">
				<view class="seond_box">
					<view class="seond_left">
						<view class="left_size">
							皮下脂肪率
						</view>
						<u-input placeholder="请填写" type="number" :border="false" input-align="right"
							placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
							:custom-style="customStyle" />
					</view>
					<view class="seond_right">
						<view class="mmr">
							参考值
						</view>
						<view>
							18.5-26.7
						</view>
					</view>
				</view>
			</view>
		</addVue>
		<addVue :title="'节段肌肉'">
			<view class="comlum_Y3">
				<view class="photo">
					<view class="comlum_y">
						<view class="com_Item flex">
							<u-input placeholder="请填写" type="number" :border="false" input-align="right"
								placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
								:custom-style="customStyle" height="28rpx"/>
							<view class="gang">
							</view>
							<u-input placeholder="请填写" type="number" :border="false" input-align="right"
								placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
								:custom-style="customStyle" height="28rpx"/>
						</view>
						<view class="center_Item">
							
						</view>
						<view class="com_Item">
							<u-input placeholder="请填写" type="number" :border="false" input-align="right"
								placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
								:custom-style="customStyle" height="28rpx"/>
							<view class="gang">
							</view>
							<u-input placeholder="请填写" type="number" :border="false" input-align="right"
								placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
								:custom-style="customStyle" height="28rpx"/>
						</view>
					</view>
					<image   :src="$IMG_URL('/static/test/boy.png')" mode="aspectFit" class="img"></image>
					<view class="comlum_y">
						<view class="com_Item flex">
							<u-input placeholder="请填写" type="number" :border="false" input-align="right"
								placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
								:custom-style="customStyle" height="28rpx"/>
							<view class="gang">
							</view>
							<u-input placeholder="请填写" type="number" :border="false" input-align="right"
								placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
								:custom-style="customStyle" height="28rpx"/>
						</view>
						<view class="center_Item">
							<view class="com_Item">
								<u-input placeholder="请填写" type="number" :border="false" input-align="right"
									placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
									:custom-style="customStyle" height="28rpx"/>
								<view class="gang">
								</view>
								<u-input placeholder="请填写" type="number" :border="false" input-align="right"
									placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
									:custom-style="customStyle" height="28rpx"/>
							</view>
						</view>
						<view class="com_Item">
							<u-input placeholder="请填写" type="number" :border="false" input-align="right"
								placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
								:custom-style="customStyle" height="28rpx"/>
							<view class="gang">
							</view>
							<u-input placeholder="请填写" type="number" :border="false" input-align="right"
								placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
								:custom-style="customStyle" height="28rpx"/>
						</view>
					</view>
				</view>
				<view class="row-box">
					<view class="seond_box">
						<view class="seond_left">
							<view class="left_size">
								内脏脂肪指数
							</view>
							<u-input placeholder="请填写" type="number" :border="false" input-align="right"
								placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;"
								:custom-style="customStyle" />
						</view>
						<view class="seond_right">
							<view class="mmr">
								参考值
							</view>
							<view>
								1.0-9.0
							</view>
						</view>
					</view>
				</view>
			</view>
		</addVue>
		<addVue :title="'肥胖诊断'">
			<view class="row_for">
				<view v-for="(item,index) in obesityList" :key="index" class="Item">
					<image :src="obesityActive == index?$IMG_URL('/static/test/radiotrue.png'):$IMG_URL('/static/test/radiofalse.png')" mode="aspectFill" class="img"></image>
					<view class="text">
						{{item}}
					</view>
				</view>
			</view>
		</addVue>
		<addVue :title="'综合评估'">
			<view class="cv_title">
				营养评估
			</view>
			<assessmentVue :title="'蛋白质'"></assessmentVue>
			<assessmentVue :title="'无机盐'"></assessmentVue>
			<assessmentVue :title="'脂肪'"></assessmentVue>
			<view class="cv_title">
				体重评估
			</view>
			<assessmentVue :title="'体重'"></assessmentVue>
			<assessmentVue :title="'骨骼肌'"></assessmentVue>
			<assessmentVue :title="'脂肪'"></assessmentVue>
			<view class="cv_title">
				身体质量评估
			</view>
			<assessmentVue :title="'身体质量参数'"></assessmentVue>
			<assessmentVue :title="'体脂百分数'"></assessmentVue>
		</addVue>
		<addVue :title="'重量控制'">
			<view class="row-box">
				<view class="size">
					目标体重(kg)
				</view>
				<u-input placeholder="请填写" type="number" maxlength="11" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
			<view class="row-box">
				<view class="size">
					体重控制(kg)
				</view>
				<u-input placeholder="请填写" type="number" maxlength="11" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
			<view class="row-box">
				<view class="size">
					脂肪控制(kg)
				</view>
				<u-input placeholder="请填写" type="number" maxlength="11" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
			<view class="row-box">
				<view class="size">
					肌肉控制(kg)
				</view>
				<u-input placeholder="请填写" type="number" maxlength="11" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
			<view class="row-box">
				<view class="size">
					基础代谢(kcal)
				</view>
				<u-input placeholder="请填写" type="number" maxlength="11" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
			<view class="row-box">
				<view class="size">
					健康评估(分)
				</view>
				<u-input placeholder="请填写" type="number" maxlength="11" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
			<view class="row-box">
				<view class="size">
					身体年龄
				</view>
				<u-input placeholder="请填写" type="number" maxlength="11" :border="false" input-align="right"
					placeholder-style="color: #B6B6B6;font-size: 28rpx;font-weight: 500;" />
			</view>
		</addVue>
		<view class="empty">
			
		</view>
		<view class="over_box">
			<view class="btn">
				
			</view>
		</view>
	</view>
</template>

<script>
	import addVue from './components/add.vue'
	import assessmentVue from './components/assessment.vue'
	export default {
		components: {
			addVue,
			assessmentVue
		},
		data() {
			return {
				sexList: [
					'男',
					'女'
				],
				sexActive: 0,
				customStyle: {
					width: '84rpx',
				},
				obesityList:[
					'偏瘦型',
					'偏胖型',
					'某某型',
					'某某型'
				],
				obesityActive:0,
				assessmentList:[
					'正常',
					'缺乏',
					'过量'
				]
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background: #e9e9e9;
	}

	.body {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: 4rpx;
	}
	
	.cv_title{
		width: 100%;
		font-size: 28rpx;
		font-family: PingFang SC, PingFang SC-Bold;
		font-weight: 700;
		color: #000000;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 16rpx;
	}
	.row-box {
		width: 654rpx;
		height: 64rpx;
		background: #f9f9f9;
		border-radius: 8rpx;
		padding: 0 20rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-bottom: 16rpx;
		
		.foot_size{
			width: 218rpx;
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC-Medium;
			font-weight: 500;
			text-align: left;
			color: #000000;
		}
		.size {
			flex: 1;
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC-Medium;
			font-weight: 500;
			text-align: left;
			color: #000000;
		}

		.Item {
			display: flex;
			flex-direction: row;
			align-items: center;
			margin-left: 32rpx;

			.img {
				width: 36rpx;
				height: 36rpx;
				margin-right: 12rpx;
			}

			.text {
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC-Regular;
				font-weight: 400;
				text-align: left;
				color: #000000;
			}
		}

		.rows {
			display: flex;
			flex-direction: row;
			align-items: center;

			.mr {
				margin-right: 11rpx;
			}

			.size {
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC-Regular;
				font-weight: 500;
				text-align: right;
				color: #b6b6b6;
			}
		}

		.seond_box {
			display: flex;
			flex-direction: row;
			align-items: center;
			width: 100%;

			.seond_left {
				width: 379rpx;
				display: flex;
				flex-direction: row;
				align-items: center;
				height: 40rpx;
				padding-right: 19rpx;
				border-right: 1rpx solid #e9e9e9;

				.left_size {
					flex: 1;
					font-size: 28rpx;
					font-family: PingFang SC, PingFang SC-Medium;
					font-weight: 500;
					text-align: left;
					color: #000000;
				}

			}

			.seond_right {
				width: 245rpx;
				padding-left: 23rpx;
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC-Regular;
				font-weight: 400;
				color: #666666;
				display: flex;
				flex-direction: row;
				align-items: center;

				.mmr {
					flex:1;
				}
			}
		}
	}
	.comlum_Y3{
		display: flex;
		flex-direction: column;
	}
	.photo {
		width: 100%;
		display: flex;
		flex-direction: row;
		margin: 24rpx 0 48rpx;
		padding: 0 20rpx;
	
		.img {
			width: 444rpx;
			height: 400rpx;
			margin: 0 13rpx;
		}
	
		.comlum_y {
			width: 74rpx;
			height: 400rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			padding-bottom: 6rpx;
	
			.flex {
				padding-top: 16rpx;
			}
			
			.center_Item {
				padding: 40rpx 0 0;
				width: 74rpx;
				height: 190rpx;
			}
			.com_Item {
				display: flex;
				flex-direction: column;
				align-items: center;
	
				.text {
					font-size: 28rpx;
					font-family: PingFang SC, PingFang SC-Medium;
					font-weight: 500;
				}
	
				.gang {
					width: 74rpx;
					height: 0rpx;
					border: 2rpx solid #000000;
					margin: 5rpx 0;
				}
			}
		}
	}
	.row_for{
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 24rpx;
		.Item {
			display: flex;
			flex-direction: row;
			align-items: center;
		
			.img {
				width: 36rpx;
				height: 36rpx;
				margin-right: 12rpx;
			}
		
			.text {
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC-Regular;
				font-weight: 400;
				text-align: left;
				color: #000000;
			}
		}
	}
	.empty{
		width: 750rpx;
		height: 188rpx;
	}
	.over_box{
		width: 750rpx;
		height: 160rpx;
		background: #ffffff;
		box-shadow: 0rpx 8rpx 28rpx 0rpx rgba(166,179,194,0.30); 
		position: fixed;
		bottom: 0;
		display: flex;
		justify-content: center;
		padding-top: 10rpx;
		.btn{
			width: 710rpx;
			height: 88rpx;
			background: #73F0EA;
			border-radius: 16rpx;
			font-size: 34rpx;
			font-family: PingFang SC, PingFang SC-Bold;
			font-weight: 700;
			text-align: center;
			color: #ffffff;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
</style>